package com.nardo.br.vendas;

import org.hibernate.HibernateException;
import org.hibernate.Session;

public class Conecta {
	public static void main(String args[]){
		Session session = null;
		try{
			session = new HibernateUtil().getSession().openSession();
			System.out.println("Conectou");
		}finally{
			session.close();
			System.out.println("Fechou conexao");
		}
	}

}
